﻿<%@ Page Title="Cungmuanao.com - Nhắc mật khẩu" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="PasswordRecovery.aspx.cs" Inherits="Admin_PasswordRecovery" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<div class="title">Nhắc mật khẩu</div>
<div class="body">

<ul style="list-style-type: square">
   <li>
        <asp:HyperLink ID="hplManageUser" runat="server" Text="Manage User" NavigateUrl="~/Admin/ManageUser.aspx"></asp:HyperLink>
    </li>
</ul>  
<hr /> 

        <!-- Bat Dau -->
        <p></p>
            If user forgot password, you can use this page to have it sent to him/her by e-mail.
        <p></p>
        <asp:PasswordRecovery ID="PasswordRecovery1" runat="server">
      <UserNameTemplate>
         <div class="sectionsubtitle">Enter username</div>
         <p></p>
         <table cellpadding="2">
            <tr>
               <td style="width: 80px;" class="fieldname"><asp:Label runat="server" ID="lblUsername" AssociatedControlID="UserName" Text="Username:" /></td>
               <td style="width: 300px;"><asp:TextBox ID="UserName" runat="server" Width="100%"></asp:TextBox></td>
               <td>
                  <asp:RequiredFieldValidator ID="valRequireUserName" runat="server" ControlToValidate="UserName" SetFocusOnError="true" Display="Dynamic"
                     ErrorMessage="Username is required." ToolTip="Username is required." ValidationGroup="PasswordRecovery1">*</asp:RequiredFieldValidator>
               </td>            
            </tr>
            <td colspan="3" style="text-align: right;">
               <asp:Label ID="FailureText" runat="server" SkinID="FeedbackKO" EnableViewState="False" /> 
               <asp:Button ID="SubmitButton" runat="server" CommandName="Submit" Text="Submit" ValidationGroup="PasswordRecovery1" />
            </td>
         </table>         
      </UserNameTemplate>
      
      <SuccessTemplate>
         <asp:Label runat="server" ID="lblSuccess" SkinID="FeedbackOK" 
            Text="Password has been sent to user." />
      </SuccessTemplate> 
      <MailDefinition
         BodyFileName="~/Admin/RegistrationMail.txt"
         From="admin@cungmuanao.com"
         Subject="cungmuanao.com : your password">
      </MailDefinition>    
   </asp:PasswordRecovery>
        <!-- !Bat Dau -->
        </div>
        <div class="bottom"></div>
</asp:Content>